﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TriggerNoStay2D : Condition
{
    public string targetTag;
    bool flag = false;
    private void OnTriggerStay2D(Collider2D collision)
    {
        if (collision.tag == targetTag)
        {
            flag = true;
        }
    }
    private void LateUpdate()
    {
        ToJump = !flag;
        flag = false;
    }
}
